[IA64] access reflect fix
authorawilliam@xenbuild.aw <awilliam@xenbuild.aw>
Mon, 10 Apr 2006 20:54:35 +0000 (14:54 -0600)
committerawilliam@xenbuild.aw <awilliam@xenbuild.aw>
Mon, 10 Apr 2006 20:54:35 +0000 (14:54 -0600)
Before injecting fault to guest, VMM need to setup
guest itir by using guest region register.
But the lowest two bits of itir are reserved. VMM need
to reset these two bits.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
xen/arch/ia64/xen/hyperprivop.S

index 179c6c757e55492b154fc49ee91e2e0d6750e52d..930dcd8d6fadd750aa89eb24bd1a447f5cb13a19 100644 (file)
@@ -748,6 +748,7 @@ GLOBAL_ENTRY(fast_access_reflect)
        adds r21=XSI_RR0_OFS-XSI_PSR_IC_OFS,r18 ;;
        shladd r22=r22,3,r21;;
        ld8 r22=[r22];;
+       and r22=~3,r22;;
        st8 [r23]=r22;;
        br.cond.sptk.many fast_reflect;;